﻿namespace OpenAiMobile.Services
{
    public class SessionService : ISessionService
    {
        public event Action<float, float> OnDataReceived = (_, _) => { };
        public event Action<string> OnShowMessage = (_) => { };

        public void ReceiveData(float temperature, float humidity)
        {
            OnDataReceived?.Invoke(temperature, humidity);
        }

        public void ShowMessage(string message)
        {
            OnShowMessage?.Invoke(message);
        }
    }
}
